<script>
	import routingIntercept  from 'uilt/auth.js'
	export default {
		data(){
			return{
				setTimes:'',
				timeon:'',
				is_end:false,
			}
		},
		onLaunch: function() {
			console.log('App Launch')
			routingIntercept()
			console.log('全局事件')
			
			// this.setTimes = setInterval(() => {
			// 	this.timeon = new Date()
			// 	if (this.timeon=='Thu Jul 21 2023 23:59:59 GMT+0800 (中国标准时间)') {
			// 		console.log('打开结束弹窗')
			// 		this.is_end = true
			// 		uni.reLaunch({
			// 			url:'/pages/pageindex/pageindex'
			// 		})
			// 		clearInterval(this.setTimes);
			// 	}
			// 	const t2 = new Date().getTime()
			// 	const t5 = new Date('2023-07-21 23:59:59').getTime()
			// 	if (t2>=t5) {
			// 		console.log('打开结束弹窗')
			// 		this.is_end = true
			// 		uni.reLaunch({
			// 			url:'/pages/pageindex/pageindex'
			// 		})
			// 		clearInterval(this.setTimes);
			// 	}
			// 	console.log(t5,t2,'t3',this.timeon,this.setTimes,this.is_end)
			// }, 1000)
			
			//获取
		},
		created() {
		    // 在这里执行全局初始化操作
		    console.log('App.vue created');
		  },
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
	page{
		background:#F4F9FD;
	}
</style>
